package com.uzai.console.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.uzai.console.dto.dingding.DingWarningGroupQuery;
import com.uzai.console.entity.DingWarningGroup;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DingWarningGroupMapper {
    void insert(DingWarningGroup dingWarningGroup);

    List<DingWarningGroup> queryDingWarningGroupList(Page<DingWarningGroup> page, @Param("query") DingWarningGroupQuery query);

    List<DingWarningGroup> queryDingWarningGroupList(@Param("query") DingWarningGroupQuery query);

    int deleById(Long id);

    DingWarningGroup queryDingWarningGroupById(Long id);

    int update(DingWarningGroup dingWarningGroup);

    DingWarningGroup queryDingWarningGroupByConfig(String openConversationId);

    int updatePayMsg(DingWarningGroup dingWarningGroup);

    int updateFreeMsg(DingWarningGroup dingWarningGroup);

}
